package com.company.oa.document.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 公文附件实体类
 */
@Data
@TableName("doc_attachment")
public class DocumentAttachment implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 附件ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公文ID
     */
    private Long documentId;

    /**
     * 附件名称
     */
    private String name;

    /**
     * 附件路径
     */
    private String path;

    /**
     * 附件大小（字节）
     */
    private Long size;

    /**
     * 附件类型
     */
    private String type;

    /**
     * 上传人ID
     */
    private Long uploaderId;

    /**
     * 上传人姓名
     */
    private String uploaderName;

    /**
     * 上传时间
     */
    private LocalDateTime uploadTime;
} 